<template>
  <div class="second">
    <div class="top-img">
      <img src="@/assets/test/index-2.png" alt="">
    </div>
    <div class="word-1">
      <div>高精度批量操作、稳定数据质量、智能化移液技术、简单软件操作</div>
      <div>以工具的颠覆性创新，引发生物医药产业革命</div>
    </div>
    <div class="word-2">
      <div class="top">智能移液工作站Amphi</div>
      <div class="bottom">大繁至简 Simplicity is the Ultimate Form of Sophistication</div>
    </div>
    <div class="middle-img">
      <img src="@/assets/test/workstation.png" alt="">
    </div>
    <div class="word-3">
      <div class="top">智慧自动化实验室解决方案</div>
      <div class="bottom">浪潮汹涌，重塑力量 Keep Energy</div>
    </div>
    <div class="solves">
      <div v-for="(item, index) in solvesData" :key="index" class="item">
        <div class="img-container">
          <img :src="item.icon" alt="">
        </div>
        <div class="title">{{ item.title }}</div>
        <div class="sub-title">{{ item.subTitle }}</div>
      </div>
    </div>
  </div>

</template>

<script setup>
import { ref, onMounted, getCurrentInstance, onUnmounted } from 'vue';
import { solves } from '@/api/index.ts'
const props = defineProps({
  currentLogo: {
    type: String,
    require: true,
    default: "",
  },
});

const solvesData = ref([]);

onMounted(() => {
  getSolve();
})

const getSolve = () => {
  solves().then(res => {
    solvesData.value = res.data;
  })
}

</script>

<style lang="scss" scoped>
.second {
  .top-img {
    img {
      width: 100%;
      object-fit: cover
    }
  }

  .word-1 {
    text-align: center;
    color: #fff;
    font-size: 36px;
    font-style: normal;
    font-weight: bold;
    line-height: 50px;
  }

  .word-2,
  .word-3 {
    margin-top: 100px;

    .top {
      color: #fff;
      text-align: center;
      font-size: 36px;
      font-style: normal;
      font-weight: 600;
    }

    .bottom {
      margin-top: 100px;
      color: #fff;
      text-align: center;
      font-size: 24px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
      opacity: .6;
    }
  }

  .word-3 {
    margin-top: 200px;
  }

  .middle-img {
    text-align: center;
  }

  .solves {
    display: flex;
    justify-content: space-between;
    width: 80%;
    padding: 100px;
    margin: 0 auto;
    gap: 50px;

    .item {
      height: 550px;
      background: url('@/assets/test/solution_bg.png');
      // background: url('@/assets/test/solution_bg.png') rgba(42, 57, 109, .5) no-repeat center / 100% 100%;
      background-size: cover;
      opacity: .8;
      // width: 31.5%;
      flex: 1;
      padding: 100px 20px 100px 20px;

      border-radius: 20px;
      backdrop-filter: blur(2px);

      .img-container {
        text-align: center;

        img {
          width: 166px;
          height: 166px;
        }
      }

      .sub-title {
        text-align: center;
        margin-top: 20px;
        color: rgba(255, 255, 255, .8);
        font-size: 20px;
        line-height: normal;

      }

      .title {
        text-align: center;
        color: #fff;
        font-size: 28px;
        font-weight: 400;
        line-height: normal;
      }
    }
  }
}
</style>
